<table class="table table-striped table-bordered table-hover">

    <tr>
        <th width="160" height="40">A&ccedil;&otilde;es</th>
        <th width='60'>Prioridade</th>
        <th>Nome</th>
    </tr>

    <?php
    $sql = "SELECT * FROM perfil WHERE sta_id='1' ORDER BY per_id";
    $res = sql($sql);
    while($linha = mysql_fetch_array($res)) {

    ?>

    <tr>
        <td height="40"> 
          <?php if ($linha['per_id'] > 6) { ?>
          <input name="excluir[]" type="checkbox" value="<?=$linha['per_id'];?>"/><i class="icon-trash"></i> Excluir&nbsp;&nbsp;|&nbsp;
          <? } ?>
          <a href="?pag=perfil_alt&per_id=<?=$linha['per_id'];?>&titulo=Perfil de Acesso :: Editar"><i class="icon-pencil"></i> Editar</a>
        </td>
        <td><?=$linha['per_id'];?></td>
        <td><?=$linha['per_nome'];?></td>
    </tr>
    <?
    } 
    ?>
</table>